import request from '@/utils/request'

export function listGoods(query) {
  return request({
    url: '/system/goods/list',
    method: 'get',
    params: query
  })
}
// 查询物资对象列表

export function objList(query) {
  return request({
    url: '/system/obj/list',
    method: 'get',
    params: query
  })
}
// 查询 需要回收废弃的出库物资

export function detailQueryPageList(query) {
  return request({
    url: '/system/out/detailQueryPageList',
    method: 'get',
    params: query
  })
}
export function delGoods(compFeeIds) {
  return request({
    url: '/system/goods/' + compFeeIds,
    method: 'delete'
  })
}
export function goodsAdd(data) {
  return request({
    url: '/system/goods',
    method: 'post',
    data: data
  })
}
export function updategGoods(data) {
  return request({
    url: '/system/goods',
    method: 'put',
    data: data
  })
}
export function infoGoods(query) {
  return request({
    url: '/system/goods/' + query,
    method: 'get',
    params: query
  })
}
export function statusChange(id, status) {
  return request({
    url: '/system/goods/' + status + '/' + id,
    method: 'PUT',
  })
}